import java.util.Scanner;


public class demo03 {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        //记录金字塔个数
        int count = 0;
        while(sc.hasNext()){
            //获取金字塔层数
            int num = sc.nextInt();
            //生成金字塔
            result(num, count);
            count++;
        }
    }

    public static void result(int num, int count){
        //第二个金字塔开始先打印两行回车进行分割
        if(count != 0) System.out.println("\n");
        for(int i = 0; i < num; i++){
            //打印金字塔空格部分
            for(int j = 0; j < num - i - 1; j++){
                System.out.print(" ");
            }
            //打印金字塔结构部分
            for(int j = 0; j < 1 + i * 2; j++){
                System.out.print("*");
            }
            System.out.println();
        }
    }
}
